package com.woniuxy.creditsystem.moneyditchmag.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.creditsystem.common.bean.MoneyChannelInfo;
import com.woniuxy.creditsystem.common.bean.PageRequest;
import com.woniuxy.creditsystem.common.bean.ProductInfo;
import com.woniuxy.creditsystem.common.bean.ResultMsg;
import org.apache.ibatis.annotations.Param;

import java.io.IOException;
import java.util.List;

public interface IMoneyDitch {


    /**
     * 点击启用根据id修改状态
     * @param
     * @return
     */
    int updaStatusById(MoneyChannelInfo moneyChannelInfo);



    /**
     * 修改渠道
     * @param moneyChannelInfo
     * @return
     */
    int updaMoneyChannelInfo(MoneyChannelInfo moneyChannelInfo);

    /**
     * 新增渠道
     * @param moneyChannelInfo
     * @return
     */
    int savaMoneyChannelInfo(MoneyChannelInfo moneyChannelInfo);


    /**
     * 分页插件以及上边搜索栏
     * @param request
     * @param moneyChannelInfo
     * @return
     */
    PageInfo<MoneyChannelInfo> findAllByParams(PageRequest request, MoneyChannelInfo moneyChannelInfo);

    ResultMsg write2excel(List<MoneyChannelInfo> tableDataJson, String path) throws IOException;

    List<MoneyChannelInfo> findDitchIdAndDitchAllName();
}
